package com.woniu.command.handler;

import com.woniu.adapter.CustomerTypeAdapter;
import com.woniu.outlet.po.CustomerTypePo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CustomerTypeCommandHandler {

    @Autowired
    private CustomerTypeAdapter customerTypeAdapter;



    public Integer addCustomerType(CustomerTypePo customerTypePo){
        customerTypeAdapter.addCustomerTypePo(customerTypePo);
        return 1;
    }

    public Integer updateCustomerType(CustomerTypePo customerTypePo){
        customerTypeAdapter.updateCustomerTypePo(customerTypePo);
        return 1;
    }

    public Integer deleteCustomerTypeById(Long id){
        customerTypeAdapter.deleteCustomerTypePoById(id);
        return 1;
    }



}
